/*
 * XML Type:  ExtendedBInfo_V100
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.ExtendedBInfoV100
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML ExtendedBInfo_V100(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class ExtendedBInfoV100Impl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.ExtendedBInfoV100
{
    
    public ExtendedBInfoV100Impl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PROCDETV100$0 = 
        new javax.xml.namespace.QName("", "PROCDET_V100");
    private static final javax.xml.namespace.QName TEINTEREST$2 = 
        new javax.xml.namespace.QName("", "TEINTEREST");
    private static final javax.xml.namespace.QName PABINTEREST$4 = 
        new javax.xml.namespace.QName("", "PABINTEREST");
    private static final javax.xml.namespace.QName TEINTDIVIDEND$6 = 
        new javax.xml.namespace.QName("", "TEINTDIVIDEND");
    private static final javax.xml.namespace.QName PABDIVIDEND$8 = 
        new javax.xml.namespace.QName("", "PABDIVIDEND");
    
    
    /**
     * Gets array of all "PROCDET_V100" elements
     */
    public net.ofx.types.x2003.x04.ProceedDescriptionV100[] getPROCDETV100Array()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(PROCDETV100$0, targetList);
            net.ofx.types.x2003.x04.ProceedDescriptionV100[] result = new net.ofx.types.x2003.x04.ProceedDescriptionV100[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "PROCDET_V100" element
     */
    public net.ofx.types.x2003.x04.ProceedDescriptionV100 getPROCDETV100Array(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ProceedDescriptionV100 target = null;
            target = (net.ofx.types.x2003.x04.ProceedDescriptionV100)get_store().find_element_user(PROCDETV100$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "PROCDET_V100" element
     */
    public int sizeOfPROCDETV100Array()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PROCDETV100$0);
        }
    }
    
    /**
     * Sets array of all "PROCDET_V100" element
     */
    public void setPROCDETV100Array(net.ofx.types.x2003.x04.ProceedDescriptionV100[] procdetv100Array)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(procdetv100Array, PROCDETV100$0);
        }
    }
    
    /**
     * Sets ith "PROCDET_V100" element
     */
    public void setPROCDETV100Array(int i, net.ofx.types.x2003.x04.ProceedDescriptionV100 procdetv100)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ProceedDescriptionV100 target = null;
            target = (net.ofx.types.x2003.x04.ProceedDescriptionV100)get_store().find_element_user(PROCDETV100$0, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(procdetv100);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "PROCDET_V100" element
     */
    public net.ofx.types.x2003.x04.ProceedDescriptionV100 insertNewPROCDETV100(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ProceedDescriptionV100 target = null;
            target = (net.ofx.types.x2003.x04.ProceedDescriptionV100)get_store().insert_element_user(PROCDETV100$0, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "PROCDET_V100" element
     */
    public net.ofx.types.x2003.x04.ProceedDescriptionV100 addNewPROCDETV100()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ProceedDescriptionV100 target = null;
            target = (net.ofx.types.x2003.x04.ProceedDescriptionV100)get_store().add_element_user(PROCDETV100$0);
            return target;
        }
    }
    
    /**
     * Removes the ith "PROCDET_V100" element
     */
    public void removePROCDETV100(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PROCDETV100$0, i);
        }
    }
    
    /**
     * Gets the "TEINTEREST" element
     */
    public java.lang.String getTEINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEINTEREST$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TEINTEREST" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTEINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TEINTEREST$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "TEINTEREST" element
     */
    public boolean isSetTEINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEINTEREST$2) != 0;
        }
    }
    
    /**
     * Sets the "TEINTEREST" element
     */
    public void setTEINTEREST(java.lang.String teinterest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEINTEREST$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEINTEREST$2);
            }
            target.setStringValue(teinterest);
        }
    }
    
    /**
     * Sets (as xml) the "TEINTEREST" element
     */
    public void xsetTEINTEREST(net.ofx.types.x2003.x04.AmountType teinterest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TEINTEREST$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TEINTEREST$2);
            }
            target.set(teinterest);
        }
    }
    
    /**
     * Unsets the "TEINTEREST" element
     */
    public void unsetTEINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEINTEREST$2, 0);
        }
    }
    
    /**
     * Gets the "PABINTEREST" element
     */
    public java.lang.String getPABINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PABINTEREST$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PABINTEREST" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetPABINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(PABINTEREST$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "PABINTEREST" element
     */
    public boolean isSetPABINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PABINTEREST$4) != 0;
        }
    }
    
    /**
     * Sets the "PABINTEREST" element
     */
    public void setPABINTEREST(java.lang.String pabinterest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PABINTEREST$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PABINTEREST$4);
            }
            target.setStringValue(pabinterest);
        }
    }
    
    /**
     * Sets (as xml) the "PABINTEREST" element
     */
    public void xsetPABINTEREST(net.ofx.types.x2003.x04.AmountType pabinterest)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(PABINTEREST$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(PABINTEREST$4);
            }
            target.set(pabinterest);
        }
    }
    
    /**
     * Unsets the "PABINTEREST" element
     */
    public void unsetPABINTEREST()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PABINTEREST$4, 0);
        }
    }
    
    /**
     * Gets the "TEINTDIVIDEND" element
     */
    public java.lang.String getTEINTDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEINTDIVIDEND$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "TEINTDIVIDEND" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetTEINTDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TEINTDIVIDEND$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "TEINTDIVIDEND" element
     */
    public boolean isSetTEINTDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(TEINTDIVIDEND$6) != 0;
        }
    }
    
    /**
     * Sets the "TEINTDIVIDEND" element
     */
    public void setTEINTDIVIDEND(java.lang.String teintdividend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(TEINTDIVIDEND$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEINTDIVIDEND$6);
            }
            target.setStringValue(teintdividend);
        }
    }
    
    /**
     * Sets (as xml) the "TEINTDIVIDEND" element
     */
    public void xsetTEINTDIVIDEND(net.ofx.types.x2003.x04.AmountType teintdividend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(TEINTDIVIDEND$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(TEINTDIVIDEND$6);
            }
            target.set(teintdividend);
        }
    }
    
    /**
     * Unsets the "TEINTDIVIDEND" element
     */
    public void unsetTEINTDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(TEINTDIVIDEND$6, 0);
        }
    }
    
    /**
     * Gets the "PABDIVIDEND" element
     */
    public java.lang.String getPABDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PABDIVIDEND$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "PABDIVIDEND" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetPABDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(PABDIVIDEND$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "PABDIVIDEND" element
     */
    public boolean isSetPABDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PABDIVIDEND$8) != 0;
        }
    }
    
    /**
     * Sets the "PABDIVIDEND" element
     */
    public void setPABDIVIDEND(java.lang.String pabdividend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PABDIVIDEND$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PABDIVIDEND$8);
            }
            target.setStringValue(pabdividend);
        }
    }
    
    /**
     * Sets (as xml) the "PABDIVIDEND" element
     */
    public void xsetPABDIVIDEND(net.ofx.types.x2003.x04.AmountType pabdividend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(PABDIVIDEND$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(PABDIVIDEND$8);
            }
            target.set(pabdividend);
        }
    }
    
    /**
     * Unsets the "PABDIVIDEND" element
     */
    public void unsetPABDIVIDEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PABDIVIDEND$8, 0);
        }
    }
}
